ColorTest

ColorTest is a simple application useful for demonstrating NeXTSTEP's ColorPanel.  This application demonstrates all of the ColorPanel's features.  Features of particular interest are the creation of a custom ColorPicker, and the attaching of caller supplied ColorLists. It also contains code showing how to save an NXColor to the defaults database.

Most of the information presented by this application is not updated automatically, and must be updated by selecting the appropriate button.  For example, to determine the ColorPanel's current mode, the "Curr Mode" button should be pressed.  To see if the ColorPanel is continuous, the "Is Continuous?" button must be pressed.

Some of the operations this application performs on the ColorPanel must be done before the ColorPanel is actually initialized (i.e. before you either click on the "ColorPanel" button or the border of the ColorWell at the top left corner).  These operations are the initial pickers you want included in the ColorPanel, and where to insert the button for the CustomPicker (assuming that you have selected to include the CustomPicker).  Once the ColorPanel is up, these buttons will no longer have any effect.

Similarly, some operations may be performed only when the ColorPanel is actually instantiated.  For instance, the ColorPanel "setShowAlpha" buttons (methods).  Additionally, ColorLists may only be attached when the ColorPanel is already instantiated.

The ColorWell at the top left corner of the application will store its last color across invocations of the application.  It stores the color in the defaults database, as a string.